package com.xcity.pomelo.response;

import java.util.List;

import com.xcity.game.activity.newplayer.NewPlayerViewTemplate;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class ActivityNewPlayerViewResponse extends Response {
	
	private int[] itemIds1;
	private int[] itemIds2;
	public ActivityNewPlayerViewResponse(int serial, int day, List<NewPlayerViewTemplate> tempList) {
		super(serial);
		for(int i = tempList.size() - 1; i > -1; i--){
			NewPlayerViewTemplate temp = tempList.get(i);
			if(temp.getId() == day){
				this.itemIds1 = temp.getReward1();
				this.itemIds2 = temp.getReward2();
			}
		}
	}
	public int[] getItemIds1() {
		return itemIds1;
	}
	public void setItemIds1(int[] itemIds1) {
		this.itemIds1 = itemIds1;
	}
	public int[] getItemIds2() {
		return itemIds2;
	}
	public void setItemIds2(int[] itemIds2) {
		this.itemIds2 = itemIds2;
	}
}
